home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: c scripts
- Date: 15 Apr 1996 08:33:29 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Distribution: inet
- Message-ID: <4ktq89INNsot@keats.ugrad.cs.ubc.ca>
- References: <4kpb1m$48n@news.ysu.edu> <4ktkd2$q0j@news1.cle.ab.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4ktkd2$q0j@news1.cle.ab.com>,
- Donald-Anthony C. Phillips <don.phillips@ab.com> wrote:
- >aq271@yfn.ysu.edu (Matthew Buas) wrote:
- >
- >
- >>i am interesting in writing some simple scripts to handle
- >>information from HTML forms..i would like to write the
- >>scripts in C. any suggestions on what sites have some
- >>tutorials? what libraries do i need to download?
- >>help is appreciated
- >>matt
- >
- >I've done considerable CGI programming in C. If you'd like some help
- >just e-mail me with some questions. Are you familiar with CGI in
- >general? NCSA has a good tutorial at
- >
- >http://hoohoo.ncsa.uiuc.edu/cgi/intro.html
-
- On my ISP, there is a C interpreter called ``ch''. I have no idea where it came
- from, but it takes some conforming ANSI C programs (I found through
- experimentation that it doesn't support function pointers).
-
- A C program that uses only standard-conforming functionality and no function
- pointers (or other unsupported features that I'm not aware of), could be run as
- a CGI script with ``ch''.
-
- You just change the source code to executable, and stick in the (non
- conforming!) #!/usr/bin/ch at the top.
-
- The thing can be used interactively too, so it could be used as a teaching
- tool.
-
- You can type "int x;" into it at the prompt, and then later do
-
- printf("%p\n", (void *) &x);
-
- and it actually works! :)
-
- --
- I'm not really a jerk, but I play one on Usenet.
-